﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.ComponentModel.Composition;

namespace WindowsFormsApplication2
{
   
    public partial class BaseControl : UserControl, IForm
    {
        private string _formName, _formCode;
        private FormType _formType;
        public BaseControl()
        {
            InitializeComponent();
        }

        [Browsable(true)]
        [Category("Ilyas")]
        public string FormName
        {
            get
            {
                return _formName;
            }
            set
            {
                _formName = value;
            }
        }

        [Browsable(true)]
        [Category("Ilyas")]
        public string FormCode
        {
            get
            {
                return _formCode;
            }
            set
            {
                _formCode = value;
            }
        }

        [Browsable(true)]
        [Category("Ilyas")]
        public FormType FormType
        {
            get
            {
                return _formType;
            }
            set
            {
                _formType = value;
            }
        }


        public Control Form()
        {
            return this;
        }
    }
}
